﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace parkour.Web_pages.Public_Pages
{
   public partial class maps : System.Web.UI.Page
   {
      #region Variables
      #endregion

      #region Properties
      #endregion

      #region Functions

      /// <Page load>
      /// The page load function; initializes the page
      /// </Page load>
      /// <param name="sender"></param>
      /// <param name="e"></param>
      protected void Page_Load(object sender, EventArgs e)
      {

      }

      #endregion

      #region Events

      /// <Map selection change>
      /// If the user changes which map is selected, get the path to that map
      /// </Map selection change>
      /// <param name="sender"></param>
      /// <param name="e"></param>
      protected void ddlMaps_OnClick(Object sender, EventArgs e)
      {
         //var path = "";
         var map = ddlMaps.SelectedItem.Text;

         //ddlValue.Text = "Currently Selected Map: " + map + ".";

         if (ddlMaps.SelectedItem.Value != null)
         {
            Server.Transfer(@"\Resources\Map Images" + ddlMaps.SelectedItem.Value, true);
           //mapImage.ImageUrl = path;
         }

      }


      #endregion
   
   }
}